import request from './request';

// 获取当前用户的信息
export const getUserInfo = () => request.get('/system/user/getInfo');
// 获取讲师列表
export const getLectuerrList = (query?: any) => {
  return request({
    method: 'get',
    url: '/system/lecturer',
    params: query,
  });
};
// 获取讲师详情
export const getLecturerById = (id: number | string) =>
  request.get('/system/lecturer/getById?Uid=' + id);
// 修改用户信息
export const editUserInfo = (query: any) => {
  return request.put('/system/updateInfo', query);
};
// 获取技术专家列表
export const getTechnicianList = (query?: any) => {
  return request({
    method: 'get',
    url: '/system/technician',
    params: query,
  });
};
// 获取专家详情
export const getTechnicianById = (id: number | string) =>
  request.get('/system/technician/getById?Uid=' + id);
// 根据id获取用户详情
export const reqUserInfo = (id: number) => {
  return request({
    method: 'get',
    url: '/system/user/' + id,
  });
};

// 获取创业导师列表
export const getMentorsList = (query?: any) => {
  return request({
    method: 'get',
    url: '/system/mentors',
    params: query,
  });
};
// 获取创业导师详情
export const getMentorsById = (id: number | string) =>
  request.get('/system/mentors/getById?Uid=' + id);

  // 获取成果转化专员列表
export const getSpecialistsList = (query?: any) => {
  return request({
    method: 'get',
    url: '/system/specialists',
    params: query,
  });
};
// 获取成果转化专员详情
export const getSpecialistsById = (id: number | string) =>
  request.get('/system/specialists/getById?Uid=' + id);
